<include file="./head" />
<body>
  <div class="page theme-diy" id="page-index">
  <header class="bar bar-nav"> <a class="icon icon-left pull-left pull-left back"></a>
    <h1 class="title">我的徒弟</h1>
  </header>
<div class="content native-scroll" style="overflow-y:scroll;overflow-x:hidden;">
  <div class="list-block contacts-block" style="margin-top:0px">
    <div class="list-group">
      <ul>
        <?php if($tudi){?>
        <li class="list-group-title "><h2 class="button-danger">徒弟</h2></li>

        <?php foreach($tudi as $v):?>
        <li>
          <div class="item-content">
            <div class="item-inner">
              <div class="item-title"><?php if($v['nickname']){ echo $v['nickname'];}else { echo substr_replace($v['user_tel'],'****',3,4); }?></div><div class="item-title"> ￥<?php echo $v['balance'];?></div>
            </div>
          </div>
        </li>
        <?php endforeach;?>
       <?php } ?>
      </ul>
    </div>
       <?php if(!$tudi){?>
        
             <div class="card">
    <div class="card-content">
      <div class="card-content-inner" style="color:#000">SOORY!!!您一个徒弟也没有,赶快邀请身边小伙伴加入吧,您可长期享受粉丝共30%额外奖励!!!!
          <div style="height:0.5rem"></div>
  <a href="<?php echo U("/User/Invited/".session('user.id')); ?>" class="button button-fill button-danger"   type="button" style="width:100%;">立刻邀请</a>
      </div>
    </div>
  </div>

     
        
        <?php }?>
     <?php if($tuzi){?>
     <div class="list-group">
      <ul>
        <li class="list-group-title "><h2 class="button-danger">徒子</h2></li>
        
        <?php foreach($tuzi as $v):?>
        <li>
          <div class="item-content">
            <div class="item-inner">
              <div class="item-title"><?php if($v['nickname']){ echo $v['nickname'];}else { echo substr_replace($v['user_tel'],'****',3,4); }?></div><div class="item-title"> ￥<?php echo $v['balance'];?></div>
            </div>
          </div>
        </li>
        <?php endforeach;?>

      </ul>
    </div>
   <?php } ?>

    
    
    
  </div>
</div>

 <include file="./foot_nav" />
  </div>
<include file="./foot" />
